package br.ufc.quixada.sitevendas.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	private static final String URL = "jdbc:postgresql://localhost:5432/vendasinfo";
	private static final String USER = "postgres";
	private static final String PASSWORD = "postgres";
	
	public static Connection getConnection() throws SQLException{
		try{
			Class.forName("org.postgresql.Driver");
		}catch(Exception e){
			System.out.println("Erro");
		}
		return DriverManager.getConnection(URL, USER, PASSWORD);
	}
}